import Foundation
import Kitura
import KituraSampleRouter
import KituraSession
import KituraCache


//let router = RouterCreator.create()

let router = Router()
let cache = KituraCache()
var tokens = String()
let sessionTestKey = "sessionKey"
let sessionTestValue = "sessionValue"



router.all(middleware: Session(secret: "V..."))

PostgreSQL()
api1()
api2()

Kitura.addHTTPServer(onPort: 8020, with: router)
Kitura.run()






